<template>
  <div style="overflow: hidden; height: 100vh">
    <img src="../assets/404.png" alt="" style="width: 40%; height: 50%">
      <el-button type="text" style="padding-bottom: 100px;" @click="open">跳转登录界面</el-button>
  </div>
</template>

<script>
import { MessageBox } from 'element-ui';
export default {
  name: "NotFound",
  methods: {
    open() {
      this.$alert('<strong> <i>登录页面:路径：/login</i> </strong>', 'Tip', {
        dangerouslyUseHTMLString: true,
      });
      localStorage.removeItem("user")
      localStorage.removeItem("menus")
      this.$router.push('/login')
    }
  }
}
</script>

<style>
.bgImg {
  background: url("../assets/404.png") no-repeat;
  background-size: 100% 100vh;
}
</style>
